<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // 对象解构获取console.log方法
    const {
      log: l
    } = console

    //题目：见识是否是本地电话
    const num = /^010-\d+$/
    l(num.test('010-7688965445'))
    l(num.test('0418-12345678'))
  </script>
</body>

</html>